Then /^verify cascading functionality for each value of following drop lists$/ do |table|
@i=1
@id = Array.new
table.hashes.each do |hash|
  hash = hash.to_s()
  @id[@i]=hash.to_s() 
  @id[@i]["\""]=""
  @id[@i]["\""]=""
  @i=@i+1
end
make_i=1;
sleep (3)
make_a = Array.new(@browser.select_list(:id,@id[1]).getAllContents)
make_size = make_a.size
while make_i<make_size do
  @browser.select_list(:id,@id[1]).set(make_a[make_i])
  sleep(1)
  model_i=1
  model_a = Array.new(@browser.select_list(:id,@id[2]).getAllContents)
  model_size = model_a.size
  while model_i<model_size do
    @browser.select_list(:id,@id[2]).set(model_a[model_i])
    sleep(1)
    color_i=1
    color_a = Array.new(@browser.select_list(:id,@id[3]).getAllContents)
    color_size = color_a.size
    while color_i<color_size do
      @browser.select_list(:id,@id[3]).set(color_a[color_i])
      sleep(1)
      assert_equal("You have chosen a "+color_a[color_i]+" "+make_a[make_i]+" "+model_a[model_i]+". Nice car!", @browser.span(:id, 'ctl00_SampleContent_Label1').text)
      color_i=color_i+1
    end
    model_i=model_i+1
    sleep(1)
  end
  make_i=make_i+1
  sleep(1)
end
end